# 单进程执行任务 1- coding, 再执行任务 2- music
# 1 定义写代码函数 coding
# 2 定义听音乐函数 music

import time

def conding():
    for i in range(10):
        print(f'第{i}行代码')
        time.sleep(0.2)


def music():
    for i in range(10):
        print(f'第{i}首音乐')
        time.sleep(0.2)



if __name__ == '__main__':

    t1 = time.time()

    conding()
    music()

    t2 = time.time()
    print(f'用时{t2 - t1}')


